Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

[WIP] Documenting the SeoBundle #442

Merged
merged 14 commits into from
May 14, 2014
Merged

Conversation

wouterj
Copy link
Member

@wouterj wouterj commented Apr 6, 2014

Replaces #438

Q A
Doc fix? no
New docs? yes
Applies to dev
Fixed tickets -

Todo

@wouterj wouterj mentioned this pull request Apr 6, 2014
),
);

.. todo
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really get the concepts of this whole thing. Why can't we combine the default and the document values in the getSeo*() methods? /cc @dbu @ElectricMaxxx

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean injecting the more than the current metadata into the getSeo*() extraction methods to let the implementation decide how to concatenate everything together?

This would mean to give more work (for the devolper) into the extraction methods, would that be ok?

But why are commenting that line?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But i think you are right, we should give the developer that whants to handle the default values the chance to do it, but others should get a simple return $this->getMyTitle() solution.
Btw. i would like to have a list of possible getters for the SeoTitleReadExtractor (that one that guesses title getter) in the config.

@dbu
Copy link
Member

dbu commented May 3, 2014

@ElectricMaxxx do you have time to wrap this up, now that the bundle stabilized?

@ElectricMaxxx
Copy link
Member

@dbu Yes i will do. But can be tomorrow evening.
If stable i would miss a RC2. :-)

@wouterj
Copy link
Member Author

wouterj commented May 3, 2014

I'll do this tomorrow :) (since it's my PR)

@ElectricMaxxx
Copy link
Member

👍 then it won't that hard for you to review.

@wouterj
Copy link
Member Author

wouterj commented May 6, 2014

Ok, I've finished rewriting this documentation. Now, all that's left is documenting the last 2 merged PRs.

+-----------------------------------+---------------------------+----------------------------------------------+
| ``SeoTitleReadInterface`` | ``getSeoTitle()`` | Returns the page title |
+-----------------------------------+---------------------------+----------------------------------------------+
| - | ``getTitle()`` | If the document has a ``getTitle()`` method, |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this extractor is not active by default, right? can we enable / disable each extractor individually?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought it was active, we have now way of activating/deactivating extractors. That's why I introduced mappings instead extractor interfaces: symfony-cmf/seo-bundle#133

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, just checked and you are right. good enough for 1.0 ;-)

@dbu
Copy link
Member

dbu commented May 6, 2014

extractors.rst is not in a toc tree, breaking the build.

),
);

Defining a Default
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a default what?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's change it to "Defining Default SEO Data"

@wouterj
Copy link
Member Author

wouterj commented May 13, 2014

@dbu I'm going to wrap this up this evening.

@wouterj
Copy link
Member Author

wouterj commented May 13, 2014

Finished :) Let's wait what Travis thinks about it and I would really love if someone could review the seo_aware documentation, since I don't have a very good Doctrine knowledge...

@ElectricMaxxx
Copy link
Member

I hope i will have a look this night.
Doing some doctrine stuff atm (hardcore mode).

On 05/13/2014 08:48 PM, Wouter J wrote:

Finished :) Let's wait what Travis thinks about it and I would really
love if someone could review the seo_aware documentation, since I
don't have a very good Doctrine knowledge...


Reply to this email directly or view it on GitHub
#442 (comment).

can do the work for you. Extractors are executed when an object implements a
specific interface. The method required by that interface will return the
value for the specific SEO data. The extractor will then update the
``SeoMetadata`` object for the current object with the returned value.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this relies on the RoutingBundle enhancers putting the main content into the CONTENT_KEY field in parameters. i think we should somehow mention that here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed, added a paragraph about it

@dbu
Copy link
Member

dbu commented May 14, 2014

okay, i went through the doc now. coming good, but a few things to clean up.

@wouterj
Copy link
Member Author

wouterj commented May 14, 2014

Ok, that's the final push to this PR. Thanks @dbu and @ElectricMaxxx for your great review job!

If you have anything more to comment, please open a PR and fix it directly. I'm now going to merge it so we can announce 1.1 tonight

wouterj added a commit that referenced this pull request May 14, 2014
…umentation

[WIP] Documenting the SeoBundle
@wouterj wouterj merged commit 37f5a69 into dev May 14, 2014
@wouterj wouterj deleted the ElectricMaxxx-seo-bundle-documentation branch May 14, 2014 17:44
@dbu
Copy link
Member

dbu commented May 14, 2014

awesome, thanks a lot!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants